package com.yh.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/to")
public class PageController {

    @RequestMapping("/index")
    public String toPageant(){
        return "index";
    }

    @RequestMapping("/login")
    public String login(){
        return "login";
    }

    @RequestMapping("/failer")
    public String failer(){
        return "failer";
    }

    @RequestMapping("/noGood")
    public String noGood(){
        return "403";
    }



    @RequestMapping("/product-add")
    public String productAdd(){
        return "/product/product-add";
    }

}